package org.jugile.demo.web;

import org.jugile.util.Jugile;
import org.jugile.web2.Component;
import org.jugile.web2.Cycle;
import org.jugile.web2.Request;

public class App extends Jugile {

	public Component getPage(Request r, Cycle c) {
		// optional URI handler
		String uri = r.getURI();
		print("uri: " +uri);
		return null;
	}
	
	public void init() {
		// run once when application starts
		print("init");
	}
	
	public void worker() {
		// run every jugile.web.workerSleepTime seconds, default is 60 seconds
		print("This is worker");
		//Cycle.cachePage("GET", "/Foo");
	}
	
}
